<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<a href="https://www.baidu.com">到百度</a>
		<input type="button" id="but" value="前进">
		<script>
			var but=document.getElementById("but");
			but.onclick=function(){
				history.forward();
			}
			
		</script>
	</body>
</html>